package com.chuangjiangx.member.score.dao.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class InMbrScoreGiftRecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public InMbrScoreGiftRecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("imsgr.id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("imsgr.id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("imsgr.id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("imsgr.id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("imsgr.id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("imsgr.id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("imsgr.id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("imsgr.id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("imsgr.id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("imsgr.id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("imsgr.id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("imsgr.id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andMemberIdIsNull() {
            addCriterion("imsgr.member_id is null");
            return (Criteria) this;
        }

        public Criteria andMemberIdIsNotNull() {
            addCriterion("imsgr.member_id is not null");
            return (Criteria) this;
        }

        public Criteria andMemberIdEqualTo(Long value) {
            addCriterion("imsgr.member_id =", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdNotEqualTo(Long value) {
            addCriterion("imsgr.member_id <>", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdGreaterThan(Long value) {
            addCriterion("imsgr.member_id >", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdGreaterThanOrEqualTo(Long value) {
            addCriterion("imsgr.member_id >=", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdLessThan(Long value) {
            addCriterion("imsgr.member_id <", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdLessThanOrEqualTo(Long value) {
            addCriterion("imsgr.member_id <=", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdIn(List<Long> values) {
            addCriterion("imsgr.member_id in", values, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdNotIn(List<Long> values) {
            addCriterion("imsgr.member_id not in", values, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdBetween(Long value1, Long value2) {
            addCriterion("imsgr.member_id between", value1, value2, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdNotBetween(Long value1, Long value2) {
            addCriterion("imsgr.member_id not between", value1, value2, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberScoreGiftRuleIdIsNull() {
            addCriterion("imsgr.member_score_gift_rule_id is null");
            return (Criteria) this;
        }

        public Criteria andMemberScoreGiftRuleIdIsNotNull() {
            addCriterion("imsgr.member_score_gift_rule_id is not null");
            return (Criteria) this;
        }

        public Criteria andMemberScoreGiftRuleIdEqualTo(Long value) {
            addCriterion("imsgr.member_score_gift_rule_id =", value, "memberScoreGiftRuleId");
            return (Criteria) this;
        }

        public Criteria andMemberScoreGiftRuleIdNotEqualTo(Long value) {
            addCriterion("imsgr.member_score_gift_rule_id <>", value, "memberScoreGiftRuleId");
            return (Criteria) this;
        }

        public Criteria andMemberScoreGiftRuleIdGreaterThan(Long value) {
            addCriterion("imsgr.member_score_gift_rule_id >", value, "memberScoreGiftRuleId");
            return (Criteria) this;
        }

        public Criteria andMemberScoreGiftRuleIdGreaterThanOrEqualTo(Long value) {
            addCriterion("imsgr.member_score_gift_rule_id >=", value, "memberScoreGiftRuleId");
            return (Criteria) this;
        }

        public Criteria andMemberScoreGiftRuleIdLessThan(Long value) {
            addCriterion("imsgr.member_score_gift_rule_id <", value, "memberScoreGiftRuleId");
            return (Criteria) this;
        }

        public Criteria andMemberScoreGiftRuleIdLessThanOrEqualTo(Long value) {
            addCriterion("imsgr.member_score_gift_rule_id <=", value, "memberScoreGiftRuleId");
            return (Criteria) this;
        }

        public Criteria andMemberScoreGiftRuleIdIn(List<Long> values) {
            addCriterion("imsgr.member_score_gift_rule_id in", values, "memberScoreGiftRuleId");
            return (Criteria) this;
        }

        public Criteria andMemberScoreGiftRuleIdNotIn(List<Long> values) {
            addCriterion("imsgr.member_score_gift_rule_id not in", values, "memberScoreGiftRuleId");
            return (Criteria) this;
        }

        public Criteria andMemberScoreGiftRuleIdBetween(Long value1, Long value2) {
            addCriterion("imsgr.member_score_gift_rule_id between", value1, value2, "memberScoreGiftRuleId");
            return (Criteria) this;
        }

        public Criteria andMemberScoreGiftRuleIdNotBetween(Long value1, Long value2) {
            addCriterion("imsgr.member_score_gift_rule_id not between", value1, value2, "memberScoreGiftRuleId");
            return (Criteria) this;
        }

        public Criteria andMerchantIdIsNull() {
            addCriterion("imsgr.merchant_id is null");
            return (Criteria) this;
        }

        public Criteria andMerchantIdIsNotNull() {
            addCriterion("imsgr.merchant_id is not null");
            return (Criteria) this;
        }

        public Criteria andMerchantIdEqualTo(Long value) {
            addCriterion("imsgr.merchant_id =", value, "merchantId");
            return (Criteria) this;
        }

        public Criteria andMerchantIdNotEqualTo(Long value) {
            addCriterion("imsgr.merchant_id <>", value, "merchantId");
            return (Criteria) this;
        }

        public Criteria andMerchantIdGreaterThan(Long value) {
            addCriterion("imsgr.merchant_id >", value, "merchantId");
            return (Criteria) this;
        }

        public Criteria andMerchantIdGreaterThanOrEqualTo(Long value) {
            addCriterion("imsgr.merchant_id >=", value, "merchantId");
            return (Criteria) this;
        }

        public Criteria andMerchantIdLessThan(Long value) {
            addCriterion("imsgr.merchant_id <", value, "merchantId");
            return (Criteria) this;
        }

        public Criteria andMerchantIdLessThanOrEqualTo(Long value) {
            addCriterion("imsgr.merchant_id <=", value, "merchantId");
            return (Criteria) this;
        }

        public Criteria andMerchantIdIn(List<Long> values) {
            addCriterion("imsgr.merchant_id in", values, "merchantId");
            return (Criteria) this;
        }

        public Criteria andMerchantIdNotIn(List<Long> values) {
            addCriterion("imsgr.merchant_id not in", values, "merchantId");
            return (Criteria) this;
        }

        public Criteria andMerchantIdBetween(Long value1, Long value2) {
            addCriterion("imsgr.merchant_id between", value1, value2, "merchantId");
            return (Criteria) this;
        }

        public Criteria andMerchantIdNotBetween(Long value1, Long value2) {
            addCriterion("imsgr.merchant_id not between", value1, value2, "merchantId");
            return (Criteria) this;
        }

        public Criteria andStoreIdIsNull() {
            addCriterion("imsgr.store_id is null");
            return (Criteria) this;
        }

        public Criteria andStoreIdIsNotNull() {
            addCriterion("imsgr.store_id is not null");
            return (Criteria) this;
        }

        public Criteria andStoreIdEqualTo(Long value) {
            addCriterion("imsgr.store_id =", value, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdNotEqualTo(Long value) {
            addCriterion("imsgr.store_id <>", value, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdGreaterThan(Long value) {
            addCriterion("imsgr.store_id >", value, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdGreaterThanOrEqualTo(Long value) {
            addCriterion("imsgr.store_id >=", value, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdLessThan(Long value) {
            addCriterion("imsgr.store_id <", value, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdLessThanOrEqualTo(Long value) {
            addCriterion("imsgr.store_id <=", value, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdIn(List<Long> values) {
            addCriterion("imsgr.store_id in", values, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdNotIn(List<Long> values) {
            addCriterion("imsgr.store_id not in", values, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdBetween(Long value1, Long value2) {
            addCriterion("imsgr.store_id between", value1, value2, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreIdNotBetween(Long value1, Long value2) {
            addCriterion("imsgr.store_id not between", value1, value2, "storeId");
            return (Criteria) this;
        }

        public Criteria andStoreUserIdIsNull() {
            addCriterion("imsgr.store_user_id is null");
            return (Criteria) this;
        }

        public Criteria andStoreUserIdIsNotNull() {
            addCriterion("imsgr.store_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andStoreUserIdEqualTo(Long value) {
            addCriterion("imsgr.store_user_id =", value, "storeUserId");
            return (Criteria) this;
        }

        public Criteria andStoreUserIdNotEqualTo(Long value) {
            addCriterion("imsgr.store_user_id <>", value, "storeUserId");
            return (Criteria) this;
        }

        public Criteria andStoreUserIdGreaterThan(Long value) {
            addCriterion("imsgr.store_user_id >", value, "storeUserId");
            return (Criteria) this;
        }

        public Criteria andStoreUserIdGreaterThanOrEqualTo(Long value) {
            addCriterion("imsgr.store_user_id >=", value, "storeUserId");
            return (Criteria) this;
        }

        public Criteria andStoreUserIdLessThan(Long value) {
            addCriterion("imsgr.store_user_id <", value, "storeUserId");
            return (Criteria) this;
        }

        public Criteria andStoreUserIdLessThanOrEqualTo(Long value) {
            addCriterion("imsgr.store_user_id <=", value, "storeUserId");
            return (Criteria) this;
        }

        public Criteria andStoreUserIdIn(List<Long> values) {
            addCriterion("imsgr.store_user_id in", values, "storeUserId");
            return (Criteria) this;
        }

        public Criteria andStoreUserIdNotIn(List<Long> values) {
            addCriterion("imsgr.store_user_id not in", values, "storeUserId");
            return (Criteria) this;
        }

        public Criteria andStoreUserIdBetween(Long value1, Long value2) {
            addCriterion("imsgr.store_user_id between", value1, value2, "storeUserId");
            return (Criteria) this;
        }

        public Criteria andStoreUserIdNotBetween(Long value1, Long value2) {
            addCriterion("imsgr.store_user_id not between", value1, value2, "storeUserId");
            return (Criteria) this;
        }

        public Criteria andMerchantUserIdIsNull() {
            addCriterion("imsgr.merchant_user_id is null");
            return (Criteria) this;
        }

        public Criteria andMerchantUserIdIsNotNull() {
            addCriterion("imsgr.merchant_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andMerchantUserIdEqualTo(Long value) {
            addCriterion("imsgr.merchant_user_id =", value, "merchantUserId");
            return (Criteria) this;
        }

        public Criteria andMerchantUserIdNotEqualTo(Long value) {
            addCriterion("imsgr.merchant_user_id <>", value, "merchantUserId");
            return (Criteria) this;
        }

        public Criteria andMerchantUserIdGreaterThan(Long value) {
            addCriterion("imsgr.merchant_user_id >", value, "merchantUserId");
            return (Criteria) this;
        }

        public Criteria andMerchantUserIdGreaterThanOrEqualTo(Long value) {
            addCriterion("imsgr.merchant_user_id >=", value, "merchantUserId");
            return (Criteria) this;
        }

        public Criteria andMerchantUserIdLessThan(Long value) {
            addCriterion("imsgr.merchant_user_id <", value, "merchantUserId");
            return (Criteria) this;
        }

        public Criteria andMerchantUserIdLessThanOrEqualTo(Long value) {
            addCriterion("imsgr.merchant_user_id <=", value, "merchantUserId");
            return (Criteria) this;
        }

        public Criteria andMerchantUserIdIn(List<Long> values) {
            addCriterion("imsgr.merchant_user_id in", values, "merchantUserId");
            return (Criteria) this;
        }

        public Criteria andMerchantUserIdNotIn(List<Long> values) {
            addCriterion("imsgr.merchant_user_id not in", values, "merchantUserId");
            return (Criteria) this;
        }

        public Criteria andMerchantUserIdBetween(Long value1, Long value2) {
            addCriterion("imsgr.merchant_user_id between", value1, value2, "merchantUserId");
            return (Criteria) this;
        }

        public Criteria andMerchantUserIdNotBetween(Long value1, Long value2) {
            addCriterion("imsgr.merchant_user_id not between", value1, value2, "merchantUserId");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("imsgr.create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("imsgr.create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("imsgr.create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("imsgr.create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("imsgr.create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("imsgr.create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("imsgr.create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("imsgr.create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("imsgr.create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("imsgr.create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("imsgr.create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("imsgr.create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("imsgr.update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("imsgr.update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("imsgr.update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("imsgr.update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("imsgr.update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("imsgr.update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("imsgr.update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("imsgr.update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("imsgr.update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("imsgr.update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("imsgr.update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("imsgr.update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andClaimCodeIsNull() {
            addCriterion("imsgr.claim_code is null");
            return (Criteria) this;
        }

        public Criteria andClaimCodeIsNotNull() {
            addCriterion("imsgr.claim_code is not null");
            return (Criteria) this;
        }

        public Criteria andClaimCodeEqualTo(String value) {
            addCriterion("imsgr.claim_code =", value, "claimCode");
            return (Criteria) this;
        }

        public Criteria andClaimCodeNotEqualTo(String value) {
            addCriterion("imsgr.claim_code <>", value, "claimCode");
            return (Criteria) this;
        }

        public Criteria andClaimCodeGreaterThan(String value) {
            addCriterion("imsgr.claim_code >", value, "claimCode");
            return (Criteria) this;
        }

        public Criteria andClaimCodeGreaterThanOrEqualTo(String value) {
            addCriterion("imsgr.claim_code >=", value, "claimCode");
            return (Criteria) this;
        }

        public Criteria andClaimCodeLessThan(String value) {
            addCriterion("imsgr.claim_code <", value, "claimCode");
            return (Criteria) this;
        }

        public Criteria andClaimCodeLessThanOrEqualTo(String value) {
            addCriterion("imsgr.claim_code <=", value, "claimCode");
            return (Criteria) this;
        }

        public Criteria andClaimCodeLike(String value) {
            addCriterion("imsgr.claim_code like", value, "claimCode");
            return (Criteria) this;
        }

        public Criteria andClaimCodeNotLike(String value) {
            addCriterion("imsgr.claim_code not like", value, "claimCode");
            return (Criteria) this;
        }

        public Criteria andClaimCodeIn(List<String> values) {
            addCriterion("imsgr.claim_code in", values, "claimCode");
            return (Criteria) this;
        }

        public Criteria andClaimCodeNotIn(List<String> values) {
            addCriterion("imsgr.claim_code not in", values, "claimCode");
            return (Criteria) this;
        }

        public Criteria andClaimCodeBetween(String value1, String value2) {
            addCriterion("imsgr.claim_code between", value1, value2, "claimCode");
            return (Criteria) this;
        }

        public Criteria andClaimCodeNotBetween(String value1, String value2) {
            addCriterion("imsgr.claim_code not between", value1, value2, "claimCode");
            return (Criteria) this;
        }

        public Criteria andClaimStatusIsNull() {
            addCriterion("imsgr.claim_status is null");
            return (Criteria) this;
        }

        public Criteria andClaimStatusIsNotNull() {
            addCriterion("imsgr.claim_status is not null");
            return (Criteria) this;
        }

        public Criteria andClaimStatusEqualTo(Integer value) {
            addCriterion("imsgr.claim_status =", value, "claimStatus");
            return (Criteria) this;
        }

        public Criteria andClaimStatusNotEqualTo(Integer value) {
            addCriterion("imsgr.claim_status <>", value, "claimStatus");
            return (Criteria) this;
        }

        public Criteria andClaimStatusGreaterThan(Integer value) {
            addCriterion("imsgr.claim_status >", value, "claimStatus");
            return (Criteria) this;
        }

        public Criteria andClaimStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("imsgr.claim_status >=", value, "claimStatus");
            return (Criteria) this;
        }

        public Criteria andClaimStatusLessThan(Integer value) {
            addCriterion("imsgr.claim_status <", value, "claimStatus");
            return (Criteria) this;
        }

        public Criteria andClaimStatusLessThanOrEqualTo(Integer value) {
            addCriterion("imsgr.claim_status <=", value, "claimStatus");
            return (Criteria) this;
        }

        public Criteria andClaimStatusIn(List<Integer> values) {
            addCriterion("imsgr.claim_status in", values, "claimStatus");
            return (Criteria) this;
        }

        public Criteria andClaimStatusNotIn(List<Integer> values) {
            addCriterion("imsgr.claim_status not in", values, "claimStatus");
            return (Criteria) this;
        }

        public Criteria andClaimStatusBetween(Integer value1, Integer value2) {
            addCriterion("imsgr.claim_status between", value1, value2, "claimStatus");
            return (Criteria) this;
        }

        public Criteria andClaimStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("imsgr.claim_status not between", value1, value2, "claimStatus");
            return (Criteria) this;
        }

        public Criteria andClaimTimeIsNull() {
            addCriterion("imsgr.claim_time is null");
            return (Criteria) this;
        }

        public Criteria andClaimTimeIsNotNull() {
            addCriterion("imsgr.claim_time is not null");
            return (Criteria) this;
        }

        public Criteria andClaimTimeEqualTo(Date value) {
            addCriterion("imsgr.claim_time =", value, "claimTime");
            return (Criteria) this;
        }

        public Criteria andClaimTimeNotEqualTo(Date value) {
            addCriterion("imsgr.claim_time <>", value, "claimTime");
            return (Criteria) this;
        }

        public Criteria andClaimTimeGreaterThan(Date value) {
            addCriterion("imsgr.claim_time >", value, "claimTime");
            return (Criteria) this;
        }

        public Criteria andClaimTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("imsgr.claim_time >=", value, "claimTime");
            return (Criteria) this;
        }

        public Criteria andClaimTimeLessThan(Date value) {
            addCriterion("imsgr.claim_time <", value, "claimTime");
            return (Criteria) this;
        }

        public Criteria andClaimTimeLessThanOrEqualTo(Date value) {
            addCriterion("imsgr.claim_time <=", value, "claimTime");
            return (Criteria) this;
        }

        public Criteria andClaimTimeIn(List<Date> values) {
            addCriterion("imsgr.claim_time in", values, "claimTime");
            return (Criteria) this;
        }

        public Criteria andClaimTimeNotIn(List<Date> values) {
            addCriterion("imsgr.claim_time not in", values, "claimTime");
            return (Criteria) this;
        }

        public Criteria andClaimTimeBetween(Date value1, Date value2) {
            addCriterion("imsgr.claim_time between", value1, value2, "claimTime");
            return (Criteria) this;
        }

        public Criteria andClaimTimeNotBetween(Date value1, Date value2) {
            addCriterion("imsgr.claim_time not between", value1, value2, "claimTime");
            return (Criteria) this;
        }

        public Criteria andMbrScoreStreamIdIsNull() {
            addCriterion("imsgr.mbr_score_stream_id is null");
            return (Criteria) this;
        }

        public Criteria andMbrScoreStreamIdIsNotNull() {
            addCriterion("imsgr.mbr_score_stream_id is not null");
            return (Criteria) this;
        }

        public Criteria andMbrScoreStreamIdEqualTo(Long value) {
            addCriterion("imsgr.mbr_score_stream_id =", value, "mbrScoreStreamId");
            return (Criteria) this;
        }

        public Criteria andMbrScoreStreamIdNotEqualTo(Long value) {
            addCriterion("imsgr.mbr_score_stream_id <>", value, "mbrScoreStreamId");
            return (Criteria) this;
        }

        public Criteria andMbrScoreStreamIdGreaterThan(Long value) {
            addCriterion("imsgr.mbr_score_stream_id >", value, "mbrScoreStreamId");
            return (Criteria) this;
        }

        public Criteria andMbrScoreStreamIdGreaterThanOrEqualTo(Long value) {
            addCriterion("imsgr.mbr_score_stream_id >=", value, "mbrScoreStreamId");
            return (Criteria) this;
        }

        public Criteria andMbrScoreStreamIdLessThan(Long value) {
            addCriterion("imsgr.mbr_score_stream_id <", value, "mbrScoreStreamId");
            return (Criteria) this;
        }

        public Criteria andMbrScoreStreamIdLessThanOrEqualTo(Long value) {
            addCriterion("imsgr.mbr_score_stream_id <=", value, "mbrScoreStreamId");
            return (Criteria) this;
        }

        public Criteria andMbrScoreStreamIdIn(List<Long> values) {
            addCriterion("imsgr.mbr_score_stream_id in", values, "mbrScoreStreamId");
            return (Criteria) this;
        }

        public Criteria andMbrScoreStreamIdNotIn(List<Long> values) {
            addCriterion("imsgr.mbr_score_stream_id not in", values, "mbrScoreStreamId");
            return (Criteria) this;
        }

        public Criteria andMbrScoreStreamIdBetween(Long value1, Long value2) {
            addCriterion("imsgr.mbr_score_stream_id between", value1, value2, "mbrScoreStreamId");
            return (Criteria) this;
        }

        public Criteria andMbrScoreStreamIdNotBetween(Long value1, Long value2) {
            addCriterion("imsgr.mbr_score_stream_id not between", value1, value2, "mbrScoreStreamId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}